const Koa = require('koa');
const app = new Koa();
const {particulars} = require('../xiangqing/shangpinxiangqing')

app.use(async (ctx) => {
    let data = await particulars();
    console.log(data.length)
    ctx.body = {data}
})

app.listen(3000,() => {
    console.log('启动成功')
})